﻿' ------------------------------------------------------------------------------
' The LatLong structure stores a latitude/longitude pair in an unambiguous
' manner.
' ------------------------------------------------------------------------------
' This file is part of the SQL Server 2008 Technology Demonstration. This
' application was designed and coded by Eric Weitzman, LandTime Inc, for
' Microsoft Corporation. Contact Ed Katibah at Microsoft about this demo.
' Copyright © 2008 Microsoft Corporation. All rights reserved.
' ------------------------------------------------------------------------------

Public Structure LatLong
    Public Lat As Double
    Public [Long] As Double
    Private m_initialized As Boolean
    Public Sub New(ByVal latitude As Double, ByVal longitude As Double)
        Lat = latitude
        [Long] = longitude
        m_initialized = True
    End Sub
    Public ReadOnly Property IsNull() As Boolean
        Get
            Return Not m_initialized
        End Get
    End Property
End Structure
